/**
 * 创建reducer函数 专门处理发送过来的action
 */

const initState={
    value:'默认值'
}

export const reducer=(state=initState,action)=>{
    console.log('reducer:',state,action)
    switch(action.type){
        case "send_type":
            return {
                state,
                ...action.value
            }
        default:
            return state
    }
}
